const app = getApp();
Page({
    data: {
        BoxData: '',
        netErr: 0,
    },
    onLoad(options) {
        this.setData({
            merchant_id: options.merchant_id,
            order_id: options.order_id,
        })
        this.businOrderxAjax();
    },
    businOrderxAjax() {
        app.request.request({
            link: '/api/supplier/bonus_detail',
            methodtype: 'POST',
            ting: {
                merchant_id: this.data.merchant_id,
                order_id: this.data.order_id,
            },
            succ: (res) => {
                console.log(res)
                let Boxs = res.data.data, BoxMeta = res.data.message;
                if (res.data.status == 200) {
                    Boxs.thumb = app.request.picAdd + Boxs.thumb;
                    this.setData({
                        BoxData: Boxs,
                    })
                } else {
                    app.util.showModal(false, '提示', BoxMeta, () => wx.navigateBack({ delta: 1 }))
                }
            },
            fail: (err) => {
                this.setData({
                    netErr: 1,
                })
            }
        })
    },
    /*网络报错*/
    ErrorF5() {
        this.letterlistAjax();
        this.setData({
            netErr: 0,
        })
    },
    
})